package com.uyayo.framework.common.util.thread;

public abstract class Task implements Runnable{
	
  private String taskid;
  private String msg;

  public Task(String tid, String msg){
    this.taskid = tid;
    this.msg = msg;
  }

  public String getTaskid() {
    return this.taskid;
  }

  @Override
  public void run(){
    execute();
  }

  public abstract void execute();

  public String getMsg() {
    if (this.msg == null) {
      this.msg = "";
    }
    return this.msg;
  }
}